Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for filtering secrets using deep learning models #873

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

millianlmx
Copy link

@millianlmx millianlmx commented Aug 7, 2024

Adding support for filtering secrets using deep learning models from huggingface specialized in string classification for detecting secrets.

  • Please check if the PR fulfills these requirements
  • Tests for the changes have been added
  • Docs have been added / updated
  • All CI checks are green
  • What kind of change does this PR introduce?

This PR add the abality for detect-secrets to filter scans using deep learning model from huggingface.
By running the following command :

detect-secrets scan --huggingface-model huggingface/path --threshold 0.8 --huggingface-token TOKEN
  • Other information:
    When using this feature the performance of detect-secrets drops a bit because of usage of big models.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant